<!-- Box 2 -->
            <!--// bof: specials //-->
            <div class="right-box" id="loginBox">
                <div class="box_head">
                    <div class="inner1">
                        <div class="inner2">
                            <div class="inner3">
                                <a>Thành viên</a> 
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box">
                    <div class="inner1">
                        <div class="box-indent">
                            <div class="box1_body">
                                <div id="LoginArea" class="sideBoxContent centeredContent">
									<table style="width: 170px;">
										<tr>
											<td>Xin chào: <b><?php echo $this->model->username?></b> !</td>
										</tr>
										<tr>
											<td style="padding-top: 20px; text-align: right;">
												<input id="logout" onclick="logout(this);" ajaxrel="<?php echo $this->url->action("login", "ProductPage")?>" ajaxify="<?php echo $this->url->action("logout", "ProductPage")?>" class="button-gray" type="button" value="Đăng xuất" />
											</td>
										</tr>
									</table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
<script type="text/javascript">
function logout(ele)
{
	$.post($(ele).attr("ajaxify"), {}, function(lres){
		if(lres.success)
		{
			$.get($("#logout").attr('ajaxrel'), function(lresponse){
				$("#loginBox").html(lresponse);
			});
		}
	}, 'json');
}
</script>